package com.jindianjichi.subject.application.convert;

import com.jindianjichi.subject.application.entity.SubjectCategoryDto;
import com.jindianjichi.subject.domain.entity.SubjectCategoryBo;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface SubjectCategoryDtoConverter {
   SubjectCategoryDtoConverter instance= Mappers.getMapper(SubjectCategoryDtoConverter.class);
   SubjectCategoryBo convertToBoCategory(SubjectCategoryDto subjectCategoryDto);

   SubjectCategoryDto convertBoToCategoryDto(SubjectCategoryBo SubjectCategoryBo);
   List<SubjectCategoryDto> convertBoToCategory(List<SubjectCategoryBo> categoryList);
}
